import request from '@/utils/request'

//获取后台链接列表
export function getLinkList(params) {
  return request({
    url: '/admin/link/list',
    method: 'get',
    params
  })
}

//更新链接
export function updateLink(data) {
  return request({
    url: '/admin/link/update',
    method: 'put',
    data
  })
}

//删除链接
export function deleteLink(ids) {
  return request({
    url: '/admin/link/delete',
    method: 'delete',
    data:ids,
  })
}

//添加链接
export function addLink(data) {
  return request({
    url: '/admin/link/add',
    method: 'post',
    data
  })
}